package com.ruoyi.yuangong.mapper;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.mainDoMain.riyingyee;
import com.ruoyi.mainDoMain.yueyingyee;
import com.ruoyi.yuangong.domain.Vpaiban;
import com.ruoyi.yuangong.domain.dayinjilu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * qiandaoMapper接口
 *
 * @author ruoyi
 * @date 2023-11-08
 */
@Mapper
public interface VpaibanMapper {
    /**
     * 查询qiandao
     *
     * @param username qiandao主键
     * @return qiandao
     */
    Vpaiban selectVpaibanByUsername(String username);

    /**
     * 查询qiandao列表
     *
     * @param vpaiban qiandao
     * @return qiandao集合
     */
    List<Vpaiban> selectVpaibanList(Vpaiban vpaiban);

    /**
     * 新增qiandao
     *
     * @param vpaiban qiandao
     * @return 结果
     */
    int insertVpaiban(Vpaiban vpaiban);

    /**
     * 修改qiandao
     *
     * @param vpaiban qiandao
     * @return 结果
     */
    int updateVpaiban(Vpaiban vpaiban);

    /**
     * 删除qiandao
     *
     * @param username qiandao主键
     * @return 结果
     */
    int deleteVpaibanByUsername(String username);

    /**
     * 批量删除qiandao
     *
     * @param usernames 需要删除的数据主键集合
     * @return 结果
     */
    int deleteVpaibanByUsernames(String[] usernames);

    List<yueyingyee> selectYueYingYeE(@Param("format") String format, @Param("before") String before);

    List<riyingyee> selectRiYingYeE(@Param("before") String before, @Param("format")String format, @Param("name") String name);

    List<Vpaiban> selectUser();

    List<SysUser> selectSysUserList();

    List<SysUser> selectUserList();

    String ContainOpenID(String openid);

    Integer insertMiniapp(@Param("uid")long uid,@Param("openid") String openid);

    int updateMiniapp(@Param("uid")long uid,@Param("openid") String openid);

    int insertPrintLog(dayinjilu dayinjilu);
}
